<%--
  Created by IntelliJ IDEA.
  User: lanou
  Date: 18/1/23
  Time: 下午4:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="p" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">

    <title>游戏</title>

    <!-- Bootstrap core CSS -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">





    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>

</head>
<!-- NAVBAR
================================================== -->
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/index">幻想天堂</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">

            <div class="navbar-right" >
                <a  class="navbar-brand" href="/success/buycar">${sessionScope.get('name')}</a>
                <a  class="navbar-brand" href="#">账户余额：${sessionScope.get('money')}</a>
                <button type="button" class="btn btn-primary"
                        data-toggle="modal" data-target="#myModal">账户充值</button>
                <%--<button type="submit" class="btn btn-primary"><a href="/exit">退出</a></button>--%>
                <input class='btn btn-success' type='button' id='exit' value='退出'>
            </div>


        </div><!--/.navbar-collapse -->
    </div>
</nav>
<!-- Carousel
================================================== -->
<div id="myCarousel" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
        <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
        <li data-target="#myCarousel" data-slide-to="1"></li>
        <li data-target="#myCarousel" data-slide-to="2"></li>
    </ol>
    <div class="carousel-inner" role="listbox">
        <div class="item active">
         <div class="container">
             <img class="first-slide" style="width: 100%;height: 600px" src="${sessionScope.get('img1')}" alt="First slide">
         </div>

        </div>
        <div class="item">
          <div class="container">
              <img class="second-slide" style="width: 100%;height: 600px" src="${sessionScope.get('img2')}" alt="Second slide">
          </div>

        </div>
        <div class="item">
          <div class="container">
              <img class="third-slide" style="width: 100%;height: 600px" src="${sessionScope.get('img3')}" alt="Third slide">
          </div>

        </div>
    </div>
    <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
</div><!-- /.carousel -->


<!-- Marketing messaging and featurettes
================================================== -->
<!-- Wrap the rest of the page in another container to center all the content. -->

<div class="container marketing">

    <!-- Three columns of text below the carousel -->
    <div class="row">
        <div class="col-lg-4">
            <img class="img-circle" src="${sessionScope.get('img1')}" alt="Generic placeholder image" width="140" height="140">
            <h2>少量氪金</h2>
            <p>假装自己是个人民币玩家的渠道</p>
            <p><a class="btn btn-default" href="/success/shopping?id=1" role="button">走！ &raquo;</a></p>
        </div><!-- /.col-lg-4 -->
        <div class="col-lg-4">
            <img class="img-circle" src="${sessionScope.get('img2')}" alt="Generic placeholder image" width="140" height="140">
            <h2>大量氪金</h2>
            <p>假装自己是个钱挺多的人民币玩家的渠道</p>
            <p><a class="btn btn-default" href="/success/shopping?id=2" role="button">走！ &raquo;</a></p>
        </div><!-- /.col-lg-4 -->
        <div class="col-lg-4">
            <img class="img-circle" src="${sessionScope.get('img3')}" alt="Generic placeholder image" width="140" height="140">
            <h2>壕级氪金</h2>
            <p>假装自己是王思聪的渠道</p>
            <p><a class="btn btn-default" href="/success/shopping?id=3" role="button">走！ &raquo;</a></p>
        </div><!-- /.col-lg-4 -->
    </div><!-- /.row -->


    <!-- START THE FEATURETTES -->

    <hr class="featurette-divider">

    <div class="row featurette">
        <div class="col-md-7">
            <h2 class="featurette-heading">假装介绍一下 <span class="text-muted">emmm</span></h2>
            <p class="lead">${sessionScope.get('p1')}</p>
        </div>
        <div class="col-md-5">
            <img class="featurette-image img-responsive center-block" src="${sessionScope.get('img1')}" alt="Generic placeholder image">
        </div>
    </div>

    <hr class="featurette-divider">

    <div class="row featurette">
        <div class="col-md-7 col-md-push-5">
            <h2 class="featurette-heading">假装介绍第二下 <span class="text-muted">对，就是假装</span></h2>
            <p class="lead">${sessionScope.get('p2')}</p>
        </div>
        <div class="col-md-5 col-md-pull-7">
            <img class="featurette-image img-responsive center-block" src="${sessionScope.get('img2')}" alt="Generic placeholder image">
        </div>
    </div>

    <hr class="featurette-divider">

    <div class="row featurette">
        <div class="col-md-7">
            <h2 class="featurette-heading">不走心的介绍第三下 <span class="text-muted">不走心的介绍</span></h2>
            <p class="lead">${sessionScope.get('p3')}</p>
        </div>
        <div class="col-md-5">
            <img class="featurette-image img-responsive center-block" src="${sessionScope.get('img3')}" alt="Generic placeholder image">
        </div>
    </div>

    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        注册
                    </h4>
                </div>
                <div class="modal-body">
                    <form action="/success/chongzhi" method="post">
                        充值金额：<input type="text" placeholder="充值金额" class="form-control" name="jine"><br>
                        <input type="submit" class="btn btn-primary" value="充值">
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                    </button>
                    <%--<button type="button" class="btn btn-primary" data-dismiss="modal">--%>
                        <%--充值--%>
                    <%--</button>--%>

                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>


    <!-- FOOTER -->
    <footer>
        <p class="pull-right"><a href="#">Back to top</a></p>
        <p>&copy; 2018 Company, Inc.</p>
    </footer>

</div><!-- /.container -->


<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<script>

    $(document).ready(function () {
        $("#exit").on("click",function () {
            $.ajax({
                type:'post',
                url:'/exit',
                success:function () {
                    window.location.reload();
                },
                error:function () {
                    alert("shibai");
                }
            })
        })

    })


</script>

</body>
</html>